package webgoat.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import webgoat.dao.SqlDao;
import webgoat.pojo.User;
import webgoat.service.SqlService;

import java.sql.SQLException;
import java.util.List;

/**
 * @auth Administrator
 * @date 2019-11-16 10:48
 */

@Service
public class SqlServiceImpl implements SqlService{
    @Autowired
    private SqlDao sqlDao;
    @Override
    public List<User> queryUser(User user) {
        List<User> goal = null;
        try {
            goal = sqlDao.queryUser(user);
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return goal;
    }
}
